﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ESRI
{
    public class SHP
    {
        public FileInfo SHPFile { get; set; }
        public FileHeader FileHeader { get; set; }

        public SHP() { }
        public SHP(string filePath)
        {
            SHPFile = new FileInfo(filePath);
            Loadfile();
        }

        private void Loadfile()
        {
            FileStream fs = SHPFile.OpenRead();
            byte[] buffer = new byte[100];
            fs.Read(buffer, 0, 100);
            FileHeader = new FileHeader(buffer);
        }
    }
}
